package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class activity_profile extends AppCompatActivity {
    Button btn_edit;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_profile);

        btn_edit = findViewById(R.id.btn_edit);
        btn_edit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(activity_profile.this,MainActivity.class);
                startActivity(intent);
            }
        });


    }
    public void gotoMainActivity2(View view) {
        // 创建一个 Intent 对象，用于启动 MainActivity2
        Intent intent = new Intent(this, MainActivity2.class);
        // 启动新的 Activity
        startActivity(intent);
    }
    public void gotoMainActivity_home(View view) {
        // 创建一个 Intent 对象，用于启动 MainActivity_home
        Intent intent = new Intent(this, MainActivity_home.class);
        // 启动新的 Activity
        startActivity(intent);
    }
}